class UserinfoModel {
  int? errcode;
  String? errmsg;
  Data? data;
  String? message;

  UserinfoModel({this.errcode, this.errmsg, this.data, this.message});

  UserinfoModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = this.message;
    return data;
  }
}

class Data {
  String? name;
  String? aliasName;
  int? title;
  String? weixin;
  String? qq;
  String? email;
  String? sex;
  int? stateId;
  int? cityId;
  int? areaId;
  String? street;
  String? contactAddress;
  String? birthDay;
  var image_128;

  Data(
      {this.name,
        this.aliasName,
        this.title,
        this.weixin,
        this.qq,
        this.email,
        this.sex,
        this.stateId,
        this.cityId,
        this.areaId,
        this.street,
        this.image_128,
        this.contactAddress,
        this.birthDay});

  Data.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    aliasName = json['alias_name'];
    title = json['title'];
    weixin = json['weixin'];
    qq = json['qq'];
    email = json['email'];
    sex = json['sex'];
    stateId = json['state_id'];
    cityId = json['city_id'];
    areaId = json['area_id'];
    street = json['street'];
    image_128 = json['image_128'];
    contactAddress = json['contact_address'];
    birthDay = json['birth_day'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['alias_name'] = this.aliasName;
    data['title'] = this.title;
    data['weixin'] = this.weixin;
    data['qq'] = this.qq;
    data['email'] = this.email;
    data['sex'] = this.sex;
    data['state_id'] = this.stateId;
    data['city_id'] = this.cityId;
    data['area_id'] = this.areaId;
    data['street'] = this.street;
    data['contact_address'] = this.contactAddress;
    data['birth_day'] = this.birthDay;
    return data;
  }
}
